<?php
class ORMpz_task_note extends ORMBase {
  public function __construct() {
    parent::__construct('pz_task_note');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->track_id = isset($object->track_id) ? $object->track_id : '';
    $epObject->task_id = isset($object->task_id) ? $object->task_id : 0;
    $epObject->note_is_canceled = isset($object->note_is_canceled) ? $object->note_is_canceled : 0;
    $epObject->note_user_id = isset($object->note_user_id) ? $object->note_user_id : 0;
    $epObject->note_date = isset($object->note_date) ? $object->note_date : 0;
    $epObject->note_content = isset($object->note_content) ? $object->note_content : '';
    $epObject->is_planning = isset($object->is_planning) ? $object->is_planning : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->track_id = $epObject->track_id;
    $object->task_id = $epObject->task_id;
    $object->note_is_canceled = $epObject->note_is_canceled;
    $object->note_user_id = $epObject->note_user_id;
    $object->note_date = $epObject->note_date;
    $object->note_content = $epObject->note_content;
    $object->is_planning = $epObject->is_planning;
    return $object;
  }
}
?>
